#include <iostream>
#include <cstring>
using namespace std;

int countLetters(const char * const s)
{
  int count = 0;
  for (int i = 0; i < strlen(s); i++)
  {
    if (isalpha(s[i])) count++;
  }

  return count;
}

int main()
{

  cout << countLetters("C++ and Java in 2008");
  return 0;
}
